/**
 * 会员管理路由
 */
export default [
  {
    path: '/member',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'members',
        name: 'MemberList',
        component: () => import('@/views/member/Members.vue'),
        meta: { title: '会员资料' }
      },
      {
        path: 'dashboard/:id',
        name: 'MemberDashboard',
        component: () => import('@/views/member/Dashboard.vue'),
        meta: { title: '会员详情看板' }
      },
      {
        path: 'vip-card',
        name: 'MemberVIPCard',
        component: () => import('@/views/member/VIPCard.vue'),
        meta: { title: 'VIP卡管理' }
      },
      {
        path: 'points-strategy',
        name: 'MemberPointsStrategy',
        component: () => import('@/views/member/PointsStrategy.vue'),
        meta: { title: '积分策略' }
      },
      {
        path: 'benefits',
        name: 'MemberBenefits',
        component: () => import('@/views/member/Benefits.vue'),
        meta: { title: '权益策略' }
      },
      {
        path: 'visit',
        name: 'MemberVisit',
        component: () => import('@/views/member/Visit.vue'),
        meta: { title: '顾客回访' }
      },
      {
        path: 'attributes',
        name: 'MemberAttributes',
        component: () => import('@/views/member/Attributes.vue'),
        meta: { title: '会员属性' }
      },
      {
        path: 'stored-card',
        name: 'MemberStoredCard',
        component: () => import('@/views/member/StoredCard.vue'),
        meta: { title: '储值卡管理' }
      },
      {
        path: 'coupon',
        name: 'MemberCoupon',
        component: () => import('@/views/member/Coupon.vue'),
        meta: { title: '礼券管理' }
      },
      {
        path: 'vip-settings',
        name: 'MemberVIPSettings',
        component: () => import('@/views/member/VIPSettings.vue'),
        meta: { title: 'VIP卡设置' }
      },
      {
        path: 'holiday',
        name: 'MemberHoliday',
        component: () => import('@/views/member/Holiday.vue'),
        meta: { title: '节日策略' }
      },
      {
        path: 'levels',
        name: 'MemberLevels',
        component: () => import('@/views/member/Levels.vue'),
        meta: { title: '等级管理' }
      },
      {
        path: 'exchange',
        name: 'MemberExchange',
        component: () => import('@/views/member/Exchange.vue'),
        meta: { title: '积分兑换' }
      },
      {
        path: 'tags',
        name: 'MemberTags',
        component: () => import('@/views/member/Tags.vue'),
        meta: { title: '会员标签' }
      },
      {
        path: 'groups',
        name: 'MemberGroups',
        component: () => import('@/views/member/Groups.vue'),
        meta: { title: '会员分组' }
      },
      {
        path: 'marketing',
        name: 'MemberMarketing',
        component: () => import('@/views/member/Marketing.vue'),
        meta: { title: '营销活动' }
      },
      {
        path: 'analytics',
        name: 'MemberAnalytics',
        component: () => import('@/views/member/Analytics.vue'),
        meta: { title: '数据分析' }
      },
      {
        path: 'message',
        name: 'MemberMessage',
        component: () => import('@/views/member/Message.vue'),
        meta: { title: '消息推送' }
      },
      {
        path: 'checkin',
        name: 'MemberCheckin',
        component: () => import('@/views/member/Checkin.vue'),
        meta: { title: '签到管理' }
      },
      {
        path: 'tasks',
        name: 'MemberTasks',
        component: () => import('@/views/member/Tasks.vue'),
        meta: { title: '成长任务' }
      },
      {
        path: 'referral',
        name: 'MemberReferral',
        component: () => import('@/views/member/Referral.vue'),
        meta: { title: '推荐奖励' }
      },
      {
        path: 'churn-warning',
        name: 'MemberChurnWarning',
        component: () => import('@/views/member/ChurnWarning.vue'),
        meta: { title: '流失预警' }
      },
      {
        path: 'care-plan',
        name: 'MemberCarePlan',
        component: () => import('@/views/member/CarePlan.vue'),
        meta: { title: '关怀计划' }
      },
      {
        path: 'birthday',
        name: 'MemberBirthday',
        component: () => import('@/views/member/Birthday.vue'),
        meta: { title: '生日提醒' }
      },
      {
        path: 'reports',
        name: 'MemberReports',
        component: () => import('@/views/member/Reports.vue'),
        meta: { title: '会员报表' }
      }
    ]
  }
]

